package com.ruix.app.model;

import org.json.JSONObject;

/**
 * Created by hadexs on 2017/4/24.
 */

public class UncomfirmedUser {
    private String id;
    private String name;
    private String avatar;

    public UncomfirmedUser parse(JSONObject object){
        if (object != null){
            setId(object.optString("id",""));
            setName(object.optString("name",""));
            setAvatar(object.optString("avatar",""));
        }

        return this;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
}
